home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / TinyGL / ami / content / ad709 / tinygl / src / oscontext.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-08-15  |  666 b   |  31 lines

  1. #ifndef _tgl_osbuffer_h_
  2. #define _tgl_osbuffer_h_
  3.  
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7.  
  8. typedef struct {
  9.     void **zbs;
  10.     void **framebuffers;
  11.     int numbuffers;
  12.     int xsize, ysize;
  13. } ostgl_context;
  14.  
  15. ostgl_context * ostgl_create_context(const int xsize, const int ysize,
  16.                                      const int depth, void **framebuffers, 
  17.                                      const int numbuffers);
  18.  
  19. void ostgl_delete_context(ostgl_context *context);
  20.  
  21. void ostgl_make_current(ostgl_context *context, const int index);
  22.  
  23. void ostgl_resize(ostgl_context * context, const int xsize, const int ysize, 
  24.                   void **framebuffers);
  25.  
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29.  
  30. #endif /* _tgl_osbuffer_h_ */
  31.